﻿<!DOCTYPE html>
<html>
	<head>
		<title>Insert headers and footers</title>
		<meta charset="utf-8" />
		<meta name="description" content="Insert headers and footers into your document, add different headers and footer to the first page or odd and even pages" />
		<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
		<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
        <script type="text/javascript" src="../callback.js"></script>
        <script type="text/javascript" src="../search/js/page-search.js"></script>
	</head>
	<body>
		<div class="mainpart">
        <div class="search-field">
            <input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
        </div>
			<h1>Insert headers and footers</h1>
			<p>To add or remove a new header/footer, or edit one that already exists <a href="https://www.onlyoffice.com/document-editor.aspx" target="_blank" onclick="onhyperlinkclick(this)"><b>Document Editor</b></a>,</p>
			<ol>
                <li>switch to the <b>Insert</b> tab of the top toolbar,</li>
				<li>click the <div class = "icon icon-headerfooter"></div> <b>Header/Footer</b> icon on the top toolbar,</li>
				<li>select one of the following options:
					<ul>
						<li><b>Edit Header</b> to insert or edit the header text.</li>
						<li><b>Edit Footer</b> to insert or edit the footer text.</li>
						<li><b>Remove Header</b> to delete header.</li>
						<li><b>Remove Footer</b> to delete footer.</li>
					</ul>
				</li>
				<li>change the current parameters for headers or footers on the right sidebar:
					<p><img alt="Right Sidebar - Header and Footer Settings" src="../images/right_headerfooter.png" /></p>
					<ul>
						<li>Set the <b>Position</b> of the text: to the top for headers or to the bottom for footers.</li>
						<li>Check the <b>Different first page</b> box to apply a different header or footer to the very first page or in case you don't want to add any header/ footer to it at all.</li>
						<li>Use the <b>Different odd and even pages</b> box to add different headers/footer for odd and even pages.</li>
						<li>The <b>Link to Previous</b> option is available in case you've previously added <a href="../UsageInstructions/SectionBreaks.htm" onclick="onhyperlinkclick(this)">sections</a> into your document. If not, it will be grayed out. Moreover, this option is also unavailable for the very first section (i.e. when a header or footer that belongs to the first section is selected). By default, this box is checked, so that the same headers/footers are applied to all the sections. If you select a header or footer area, you will see that the area is marked with the <b>Same as Previous</b> label. Uncheck the <b>Link to Previous</b> box to use different headers/footers for each section of the document. The <b>Same as Previous</b> label will no longer be displayed.</li>
					</ul>
					<p><img alt="Same as previous label" src="../images/sameasprevious_label.png" /></p>
				</li>
			</ol>
			<p>To enter a text or edit the already entered text and adjust the header or footer settings, you can also double-click anywhere on the top or bottom margin of your document or click with the right mouse button there and select the only menu option - <b>Edit Header</b> or <b>Edit Footer</b>.</p>
			<p>To switch to the document body, double-click within the working area. The text you use as a header or footer will be displayed in gray.</p>
			<p class="note"><b>Note</b>: please refer to the <a href="InsertPageNumbers.htm" onclick="onhyperlinkclick(this)">Insert page numbers</a> section to learn how to add page numbers to your document.</p>
		</div>
	</body>
</html>
